﻿using System;

namespace Detective.World
{
    public struct GameTime
    {
        private readonly DateTime
            _initialTime;

        public GameTime(DateTime initialTime)
        {
            _initialTime = initialTime;
        }

        public double GetDifference(GameTime time)
        {
            return (_initialTime - time._initialTime).TotalMilliseconds;
        }

        public double GameHours
        {
            get { return (DateTime.Now - _initialTime).TotalHours; }
        }

        public double GameMinutes
        {
            get { return (DateTime.Now - _initialTime).Minutes; }
        }

        public double GameSeconds
        {
            get { return (DateTime.Now - _initialTime).Seconds; }
        }

        public double GameMilliSeconds
        {
            get { return (DateTime.Now - _initialTime).Milliseconds; }
        }
    }
}
